SmartToolkit
Skins Development Manual
Contents
- List of Manual
- General Skinning
- Skin Files
- Skinning Script
- Tips and Notes
- Skins Installation Pack
- More Info
List of Manual
- General SmartToolkit Manual
- Language Development Notes
- Plugins Development Manual
- Skins Development Manual
- Changelogs
General Skinning
SmartToolkit Skin Files should be on "skins" folder of SmartToolkit main directory.
If you make the skin with name my_skin you should create new directory with name
my_skin in skins directory (skins\my_skin).
You need to create the skin files and image files. Supported type for Image file is
only PNG (with alpha transparancy). you can save the image in 32bit colors for
best quality.
All file must be save in the same directory (skins\my_skin).
You can learn the skin script with exiting sample skin which bundeled in SmartToolkit
Release.
Skin Files
SmartToolkit Skin Files have an extension skin. The filename should fit with screen
resolution. If there is no skin file which fit for current device, SmartToolkit will use the default skin.
Here the example:
- 176x220.skin = Skin File for 176x220 (qqvga) devices
- 240x320.skin = Skin File for 240x320 (qvga) devices
- 320x240.skin = Skin File for 320x240 (qvga landscape) devices
Skin Files Type
!!! SAVE THE SKIN FILES WITH FORMAT UNICODE 16BIT - NO BOOM !!!
You can easely create your skin files use your windows notepad, but make sure the extensions is .skin and folow the naming above.
Make sure you save the file in format unicode 16BIT (NO BOOM) just like the languages and plugins file. Otherwise the skin file will not working properly.
Skinning Script
There is 4 tag type in skin's script:
<startui>, <bar>, <box> and <color>
STARTUI Tag
This tag is use to define the Start Menu Image on taskbar.
Sintax:
<startui:image_filename1,image_filename2>
Or:
<startui:image_filename1>
NOTE: Don't use the quote, the skin script is different with plugin script.
Remarks:
- image_filename1 is use for normal state
- image_filename2 is use for pushed state
- if only image_filename1 is defined, SmartToolkit will automaticaly
blend the image use default method when it pushed
- if this tag is not defined, SmartToolkit will automaticaly use the
default start image.
BAR Tag
This tag is use to draw the Bars Interfaces
(Taskbar, Deskbar, Clipboard Bar and Messages Soft Key).
Sintax:
<bar:image_filename,x1,y1,x2,y2>
Or:
<startui:image_filename1>
NOTE: Don't use the quote in all values.
Remarks:
- If x2!=0 or y2!=0, the Image will Strechted (not repeated - for better drawing performance)
- If x2=0 or y2=0, the Image will draw in normal size (image size)
- You can use "right" in x2
- You can use "bottom" in y2
- If x1/x2/y1/y2 is negative, the value is same with (bottom or right - (-x))
- If x2 or y2 = 0, the image will draw in normal size (image size)
- Bar Interface will not blending with current screen
- Before it draw, SmartToolkit will fill the Bar with Base Color
BOX Tag
This tag is use to draw the Boxes Interfaces
(Start Menu, Plugins, Message Box).
Sintax:
<box:image_filename,x1,y1,x2,y2>
Remarks:
- BOX Tag sintax is identical with BAR Tag
- Boxes interfaces will blending with current screen
- You can create the alpha transparance interface
- SmartToolkit will not fill anything into Box before or after drawing
COLOR Tag
This tag is use to define the Skin Color.
Sintax:
<color:color_type,red,green,blue>
There is 5 color type:
- base
- highlight
- highlight_text
- bar_text
- box_text
Example:
<color:base,90,120,128>
Remarks:
- red, green and blue range value is between 0..255
- If the color not defined it will use Windows Mobile default colors
Tips and Notes
Coloring Tips
- Make sure the defined color fit with the skin image.
- For base color, use the netral intensity ( not too light, not too dark ).
best range between 100..180, (example: <color:base,110,170,150>).
- For highlight color, make sure you define the color dark enough, because.
it will blended with white color, even your highlight_text is dark.
- If bar or box interface is lighter, set the bar_text or box_text into darker.
- If bar or box interface is darket, set the bar_text or box_text into lighter.
Default Colors
It's ok if you doesn't define some, or all colors in your skin. SmartToolkit will use the
Standard Windows System Color.
- base color = System Active Caption Color
- highlight color = System Highlight Color
- highlight_text color = System Highlight Text Color
- bar color = White
- box color = White
Drawing Notes
At least you draw 1 command for bar and box if you want to use your own skin
for bar and box interface.
If there is no bar or box draw command, SmartToolkit will use the default
skin.
Imaging Info
- For best quality, save your file in 32Bit PNG.
- For best size and performance, save your file in 8Bit PNG.
- Alpha Transparancy is supported.
- Save the image file in same directory with skin file or inside child directory.
- It recommended that you don't use the space or another special characters
in image filename, because the skin file not supported quote parameters (for performance).
- Safe Filename for image is like qvga_bar_left.png
Skins Installation Pack
!!! Comming Soon !!!
More Info
For more info, please visit the e-Natives Technology Website and
e-Natives Technology Forum.